import request from "@/utils/request";
// import { getToken } from "@/utils/storage";

export function login(data) {
  return request.post("/v1_0/authorizations", data);
}
// export function usermessage() {
//   return request({
//     url: "/mp/v1_0/user/profile",
//     headers: {
//       Authorization: `Bearer ${getToken()}`,
//     },
//   });
// }
export function usermessage() {
  return request.get("/v1_0/user/profile");
}
//关注列表
export function seeList() {
  return request.get("/v1_0/user/followings");
}
export function fanList() {
  return request.get("/v1_0/user/followers");
}
